package lesson1.tests;

import org.testng.annotations.Test;

public class LoginTest extends TestBase
{
	@Test
	public void loginWithDataTest()
	{
		UserData userData = new UserData();
		userData.login = "testuser1";
		userData.password = "111111";

		openIndexPage();
		fillLoginData(userData);
		submitLoginData();
	}

	@Test
	public void loginWithoutDataTest()
	{
		UserData userData = new UserData();
		userData.login = "";
		userData.password = "";

		openIndexPage();
		fillLoginData(userData);
		submitLoginData();
	}

}